Buffer<T>.Insert Method
Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit.Utils
Declaring Type: Buffer<T>
Overloads
Insert(int, Slice<T>) | Insert a slice of data into this buffer |
Insert(int, int, bool) | Inserts room into the buffer |
Insert(int, Slice<T>)
Insert a slice of data into this buffer
public Slice<T> Insert(int position, Slice<T> data);
Parameters
int position | The position to insert at |
Slice<T> data | The data to insert |
Returns
Slice<T> | The newly inserted data as a slice |
Insert(int, int, bool)
Inserts room into the buffer
public Slice<T> Insert(int position, int length, bool clear = true);
Parameters
int position | The position to insert at |
int length | The length to insert |
bool clear = true | Whether to clear the inserted part of the buffer |
Returns
Slice<T> | The new buffer area as a slice |